<?php
	session_start();
	function headerL(){
		// Right justify
		$type = $_SESSION['type'];
		$header = '';
		$userStuff = "<A href='index.php'>Calendar</A> | <A href='profile.php'>Profile</A> | ";
		$logout = "<A href='logout.php'>Logout</A>".$tab."</font>";
		$FName = "Welcome ".$_SESSION['FName']."! ";
		$title = "<FONT class='mainFont' size = '6'><B><CENTER>Midweeks Sign Up</CENTER></B></FONT>
			<hr SIZE = '7' COLOR = '#23238E'>";
		$title2 = "Midweeks Sign Up";
		$admin = "";
		$credits = "<div align='RIGHT'>Your Total Midweek Credits: <span style='color:".($_SESSION['TotCredit']>$_SESSION['TotCreditsNeeded']? "green" : "red").";'>".$_SESSION['TotCredit']."/".$_SESSION['TotCreditsNeeded']."</span></div>";

		if($type == 'leader'){
			$title = "<FONT class='mainFont' size = '7'><B><CENTER>&Alpha;&Phi;&Omega; &Theta; - Midweeks Leader</CENTER></B></FONT>
				<hr SIZE = '7' COLOR = '#23238E'>";
			$title2 = "Midweeks Leader Administration";
		} else if ($type == 'coordinator'){
			$title = "<FONT class='mainFont' size = '6'><B><CENTER>&Alpha;&Phi;&Omega; Midweeks Coordinator</CENTER></B></FONT>
				<hr SIZE = '7' COLOR = '#23238E'>";
			$title2 = "Midweeks Coordinator Administration";
			$admin = "<div align='right'><A href='midweeks.php'>Midweeks Administration</A> | <A href='usersAdmin.php'>Users Administration</A> </div>";
		} else if ($type == 'bro-pledge'){
		} else {
			$logout = "";
			$FName = "";
			$logB = "<font class='mainFont'><A href='login.php'>Login</A>";
		}

		$header = "<div align='RIGHT'>".$logB.$FName.$userStuff.$logout."</div>";


		echo $header.$admin.$credits.$title;
		// Print out the header at the top
		echo "<html>
			<link rel=\"stylesheet\" type=\"text/css\" href=\"webstyle.css\" />
			<link rel=\"stylesheet\" type=\"text/css\" href=\"mc.css\" />
			<head>
			<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"> 
			<Title>
			".$title2."
			</Title>
			</head>";
	}


?>
